<template>
    <download-excel :data="data" :fields="fields" :name="name">
        <el-button :round="round" :plain="plain" :circle="circle" :icon="btnIcon" :type="btnType" :size="btnSize" :disabled="disabled">
            {{ btnText }}
        </el-button>
    </download-excel>
</template>

<script>
    export default {
        props: {
            data: {
                type: Array,
                default: () => []
            },
            fields: {
                type: Object,
                default: () => {
                },
            },
            name: {
                type: String,
                default: () => '导出列表',
            },
            btnType: {
                type: String,
                default: () => 'success',
            },
            btnSize: {
                type: String,
                default: () => 'mini',
            },
            btnText: {
                type: String,
                default: () => '导出excel',
            },
            btnIcon: {
                type: String,
                default: () => 'el-icon-download',
            },
            round: {
                type: Boolean,
                default: () => false
            },
            plain: {
                type: Boolean,
                default: () => false
            },
            circle: {
                type: Boolean,
                default: () => false
            },
            disabled: {
                type: Boolean,
                default: () => false
            },
        }
    }
</script>

<style scoped>

</style>